<?php 
define('DEC', DIRECTORY_SEPARATOR);// 系统分隔符
define("SYSTEM_ROOT", __DIR__ . DEC);//引入目录
define("ROOT", str_replace(strrchr(__DIR__, DEC), '', __DIR__) . DEC);//根目录
define('ROOT_CLASS',SYSTEM_ROOT.'class'.DEC);//class库目录
require_once  ROOT_CLASS."Autoloader.php";//自动载入库

require_once  ROOT_CLASS."Function.Class.php";//公共函数库
require_once SYSTEM_ROOT . 'Config.php';
$dbconfig = $dbconfig;
Autoloader::register();
$allowedParams = ['Token_effect'];
$api  = new xfyzf\api\controller\Api();
$act    = (!in_array(input("post")['act'], $allowedParams, true))?'': input("post")['act'];
if ($act && method_exists($api, $act)) {
   $api->$act();
   exit;
} else {
   http_response_code(503);
   exit();
}
?>